#pragma once

#include <linux/types.h>
#include <linux/bits.h>

enum cons_flags
{
    CON_BOOT = BIT(3),
};

struct console
{
    void (*write)(struct console *co, const char *s, unsigned int count);
    int (*setup)(struct console *co, char *options);

    struct hlist_node node;
    void *data;
    unsigned long flags;
};

extern void register_console(struct console *);
